var DictCache = {
	"isLoad" : false
}; 
var DictFnt = {
		"isInit" : false,
		init:function(data){
			if(DictFnt.isInit)return;
			DictFnt.isInit=true;
			var dictFields=[{name: 'key',mapping:'id', type: 'int'},{name: 'value',mapping:'dictValue'}];
			
			Ext.create('Ext.data.Store', {fields:dictFields, data: data['dict_0'],storeId: 'dictType'});
		},
	load : function() {
		if (DictCache.isLoad){
			DictFnt.init(DictCache);
			return;
		}
		if (top.DictCache && top.DictCache.isLoad) {
			DictCache = top.DictCache;
			DictFnt.init(DictCache);
			return;
		}
		DictCache=dicts;
		DictCache.isLoad = true;
		DictFnt.init(DictCache);
		top.DictCache=DictCache;
	},
	getValue : function(dictList, key) {
		if(CommonUtil.isNull(key)||CommonUtil.isNull(dictList))return ' ';
		for(index in dictList){
			if(dictList[index].id==key)return dictList[index].dictValue;
		}		
		return ' ';
	},
	rendererDictType:function (value,cellmeta,record) {
		return DictFnt.getValue(DictCache['dict_0'],value);
	}
};

DictFnt.load();